package com.patternsbox.behavioral.mediator;

import com.patternsbox.ActionTemplate;

public class MediatorAction extends ActionTemplate {

	public void doAction() {
	      Mediator m = new ConcreteMediator();
	      Colleague c1 = new ConcreteColleague1(m);
	      Colleague c2 = new ConcreteColleague2(m);
	      
	      m.setColleague1(c1);
	      m.setColleague2(c2);
	      
	      c1.send("How are you?");
	      c2.send("Fine, thanks");
	}
}
